package e.g.com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import e.g.com.dao.BaseDao;
import e.g.com.pojo.Resat;
@Service("ResatService")
public class ResatServiceImpl implements ResatService {
	
	BaseDao<Resat> bd;
	
	public void insert(Resat r) {
		bd.insert(r);
	}
	
	public Resat findByid(int id) {
		
		return bd.findById(Resat.class, id);
	}
	
	public List<Resat> findall() {
		// TODO Auto-generated method stub
		return bd.find("from Resat", null);
	}

}
